package com.shazhu.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shazhu.nongjt.mapper.CertHighspeedPrintTaskMapper;
import com.shazhu.nongjt.domain.CertHighspeedPrintTask;
import com.shazhu.nongjt.service.ICertHighspeedPrintTaskService;

/**
 * 合格证高速打印任务Service业务层处理
 * 
 * @author shazhu
 * @date 2025-09-29
 */
@Service
public class CertHighspeedPrintTaskServiceImpl implements ICertHighspeedPrintTaskService 
{
    @Autowired
    private CertHighspeedPrintTaskMapper certHighspeedPrintTaskMapper;

    /**
     * 查询合格证高速打印任务
     * 
     * @param id 合格证高速打印任务主键
     * @return 合格证高速打印任务
     */
    @Override
    public CertHighspeedPrintTask selectCertHighspeedPrintTaskById(String id)
    {
        return certHighspeedPrintTaskMapper.selectCertHighspeedPrintTaskById(id);
    }

    /**
     * 查询合格证高速打印任务列表
     * 
     * @param certHighspeedPrintTask 合格证高速打印任务
     * @return 合格证高速打印任务
     */
    @Override
    public List<CertHighspeedPrintTask> selectCertHighspeedPrintTaskList(CertHighspeedPrintTask certHighspeedPrintTask)
    {
        return certHighspeedPrintTaskMapper.selectCertHighspeedPrintTaskList(certHighspeedPrintTask);
    }

    /**
     * 新增合格证高速打印任务
     * 
     * @param certHighspeedPrintTask 合格证高速打印任务
     * @return 结果
     */
    @Override
    public int insertCertHighspeedPrintTask(CertHighspeedPrintTask certHighspeedPrintTask)
    {
        return certHighspeedPrintTaskMapper.insertCertHighspeedPrintTask(certHighspeedPrintTask);
    }

    /**
     * 修改合格证高速打印任务
     * 
     * @param certHighspeedPrintTask 合格证高速打印任务
     * @return 结果
     */
    @Override
    public int updateCertHighspeedPrintTask(CertHighspeedPrintTask certHighspeedPrintTask)
    {
        return certHighspeedPrintTaskMapper.updateCertHighspeedPrintTask(certHighspeedPrintTask);
    }

    /**
     * 批量删除合格证高速打印任务
     * 
     * @param ids 需要删除的合格证高速打印任务主键
     * @return 结果
     */
    @Override
    public int deleteCertHighspeedPrintTaskByIds(String[] ids)
    {
        return certHighspeedPrintTaskMapper.deleteCertHighspeedPrintTaskByIds(ids);
    }

    /**
     * 删除合格证高速打印任务信息
     * 
     * @param id 合格证高速打印任务主键
     * @return 结果
     */
    @Override
    public int deleteCertHighspeedPrintTaskById(String id)
    {
        return certHighspeedPrintTaskMapper.deleteCertHighspeedPrintTaskById(id);
    }
}
